﻿using Microsoft.Extensions.Configuration;

namespace Service.Framework
{
    /// 基础配置内容
    public class AppSettings<T> : ITransientService where T : class, new()
    {
        private IConfiguration _configuration;

        public T Instance = new();

        public AppSettings(IConfiguration configuration)
        {
            _configuration = configuration;
            _configuration.Bind(Instance);
        }
    }
}
